package org.entity;

import java.io.Serializable;

/**
 * (Books)实体类
 *
 * @author makejava
 * @since 2021-10-13 08:41:06
 */
public class Books implements Serializable {
    private static final long serialVersionUID = 272904885069097420L;
    
    private Integer bookid;
    
    private String bookname;
    
    private Integer bookcounts;
    
    private String detail;
    //无参构造
    public Books() {
    }
    //无主键构造
    public Books(String bookname, Integer bookcounts, String detail) {
        this.bookname = bookname;
        this.bookcounts = bookcounts;
        this.detail = detail;
    }
    //全参构造
    public Books(Integer bookid, String bookname, Integer bookcounts, String detail) {
        this.bookid = bookid;
        this.bookname = bookname;
        this.bookcounts = bookcounts;
        this.detail = detail;
    }

    public Integer getBookid() {
        return bookid;
    }

    public void setBookid(Integer bookid) {
        this.bookid = bookid;
    }

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public Integer getBookcounts() {
        return bookcounts;
    }

    public void setBookcounts(Integer bookcounts) {
        this.bookcounts = bookcounts;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    @Override
    public String toString() {
        return "Books{" +
                "bookid=" + bookid +
                ", bookname='" + bookname + '\'' +
                ", bookcounts=" + bookcounts +
                ", detail='" + detail + '\'' +
                '}';
    }
}